.PHONY:all
all:servercal clientcal

flag=-DMySelf=1
lib=-ljsoncpp

servercal:server_cal.cc
	g++ $^ -o $@ -std=c++11 $(lib) #$(flag)
clientcal:client_cal.cc
	g++ $^ -o $@ -std=c++11 -g $(lib) #$(flag)

.PHONY:clean
clean:
	rm -rf servercal clientcal